﻿Public Class frmCasa

#Region "Funções"

    Private Sub HabilitarTela(ByVal booHabilitar As Boolean)

        FuncoesPrincipais.HabilitarTela(booHabilitar, Me)

    End Sub

#End Region

#Region "Eventos"

    Private Sub frmCasa_FormClosing(sender As Object, e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
        FuncoesPrincipais.HabilitarTela(True, frmPrincipal)
    End Sub

    Private Sub btnCozinha_Click(sender As System.Object, e As System.EventArgs) Handles btnCozinha.Click
        HabilitarTela(False)
        Cozinha.Show()
    End Sub

    Private Sub btnSala_Click(sender As System.Object, e As System.EventArgs) Handles btnSala.Click
        HabilitarTela(False)
        Sala.Show()
    End Sub

    Private Sub btnBanheiro_Click(sender As System.Object, e As System.EventArgs) Handles btnBanheiro.Click
        HabilitarTela(False)
        Banheiro.Show()
    End Sub

    Private Sub btnEventos_Click(sender As System.Object, e As System.EventArgs) Handles btnEventos.Click
        HabilitarTela(False)
        Quarto.Show()
    End Sub

    Private Sub btnLavanderia_Click(sender As System.Object, e As System.EventArgs) Handles btnLavanderia.Click
        HabilitarTela(False)
        Lavanderia.Show()
    End Sub

    Private Sub btnExterno_Click(sender As System.Object, e As System.EventArgs) Handles btnExterno.Click
        HabilitarTela(False)
        Externo.Show()
    End Sub

    Private Sub btnSeguranca_Click(sender As System.Object, e As System.EventArgs) Handles btnSeguranca.Click
        HabilitarTela(False)
        Segurança.Show()
    End Sub

    Private Sub btnIluminacao_Click(sender As System.Object, e As System.EventArgs) Handles btnIluminacao.Click
        HabilitarTela(False)
        Iluminacao.Show()
    End Sub

#End Region

End Class